package com.zmn.plat.services.impl.orderconfig.documentarycontent;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zmn.plat.model.entity.orderconfig.documentarycontent.DocumentaryDepartmentRelations;
import com.zmn.plat.model.entity.orderconfig.documentarycontent.DocumentaryDepartmentRelationsQuery;
import com.zmn.plat.model.vo.orderconfig.documentarycontent.DocumentaryDepartmentRelationsVO;
import com.zmn.plat.persistence.interfaces.orderconfig.documentarycontent.DocumentaryDepartmentRelationsDAO;
import com.zmn.plat.services.interfaces.orderconfig.documentarycontent.DocumentaryDepartmentRelationsService;

/**
 * 类描述:跟单部门serviceImpl类
 *
 * @author linfeng
 * @since 2019/10/22/13:49
 */
@Service
public class DocumentaryDepartmentRelationsServiceImpl implements DocumentaryDepartmentRelationsService {
    @Resource
    DocumentaryDepartmentRelationsDAO documentaryDepartmentRelationsDao;

    @Override
    public Integer insert(DocumentaryDepartmentRelations documentaryDepartmentRelations) {
        return documentaryDepartmentRelationsDao.insert(documentaryDepartmentRelations);
    }

    @Override
    public Integer insertBatch(List<DocumentaryDepartmentRelations> departmentRelationList) {
        return documentaryDepartmentRelationsDao.insertBatch(departmentRelationList);
    }

    @Override
    public Integer deleteByDocumentaryContentId(Integer documentaryContentId) {
        return documentaryDepartmentRelationsDao.deleteByDocumentaryContentId(documentaryContentId);
    }

    @Override
    public List<DocumentaryDepartmentRelationsVO> listByQuery(DocumentaryDepartmentRelationsQuery query) {
        return documentaryDepartmentRelationsDao.listByQuery(query);
    }

    @Override
    public List<DocumentaryDepartmentRelationsVO> listAll() {
        return documentaryDepartmentRelationsDao.listAll();
    }
}
